#include "rule.h"
#include "ui_rule.h"
#include<QSound>

rule::rule(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::rule)
{
    ui->setupUi(this);
    connect(ui->pushButton,&QPushButton:: released,[=]()
    {
        QSound* backbtn1=new QSound(":/picture/sound/TapButton.wav");
        backbtn1->play();
        emit closeWindow();
    });
}

rule::~rule()
{
    delete ui;
}
